package test.pool;

import billing.system.http.HttpUtils;
import billing.system.logger.SysLog;
import billing.system.pool.thread.ThreadPool;

public class A implements Runnable{
	private String url = null;
	public A(String url) {
		this.url = url;
	}
	@Override
	public void run() {
		callBack(HttpUtils.get(url));
	}
	void callBack(String html) {
	}
	
	public static void main(String[] args) {
		final ThreadPool pool = ThreadPool.getThreadPool(A.class);
		pool.addTask(new A("http://v.qq.com"){
			void callBack(String html) {
				SysLog.o("q.qq.html", html,false);
			}
		});
		pool.commit();
		pool.exit();
	}
}
